import  request from  "../../until/axios"
export const swiperlist = (params) =>
  request({
    method: "get",
    url: "/prod-api/api/logistics-inquiry/ad-banner/list",
    params,
    headers:{
      "Authorization":window.localStorage.getItem("token")
  }
  });
export const logisticslist = (params) =>
  request({
    method: "get",
    url: "/prod-api/api/logistics-inquiry/logistics_company/list",
    params,
    headers:{
      "Authorization":window.localStorage.getItem("token")
  }
  });
export const detaillist = (id) =>
  request({
    method: "get",
    url: "/prod-api/api/logistics-inquiry/logistics_company/" + id,
    headers:{
      "Authorization":window.localStorage.getItem("token")
  }
  });
export const message = (no) =>
  request({
    method: "get",
    url: "/prod-api/api/logistics-inquiry/logistics_info/"+no,
    headers:{
      "Authorization":window.localStorage.getItem("token")
  }
  });
export const complain = ( data ) =>
  request({
    method: "post",
    url: "/prod-api/api/logistics-inquiry/logistics_complaint",
    data,
    headers:{
      "Authorization":window.localStorage.getItem("token")
  }
  });
export const complainlist = ( params ) =>
  request({
    method: "get",
    url: "/prod-api/api/logistics-inquiry/logistics_complaint/my-list",
    params,
    headers:{
      "Authorization":window.localStorage.getItem("token")
  }
  });